import * as types from '../constants/ActionTypes'

const initialState = {
    text: '',
}
export default function receivehome(state = initialState, action: any) {
    switch (action.type) {
        case types.RECEIVE_HOME:
        {
            return Object.assign({}, state, {
                text: action.homes,
            })
        }
        default:
            return state
    }
}
